CurlCurl http://192.168.1.101 // text access to Web sitescurl-a ' IE11 ' http://192.168.1.101 // simulate the browser as appropriateOther common options:-basic using HTTP Basic authentication- u user:password Submit user name and password--tcp-nodelay using the tcp_nodelay option- e Specify which URL to jump from--cacert specifying CA certificates--compressed Requires that the returned data be in a compressed format- H Custom header information is passed to the server- I. only the respon
/www2ServerName www2.magedu.comCustomLog/var/log/httpd/www2/acess_log commonErrorLog/var/log/httpd/www2/err_log
Options NoneAllowOverride NoneRequire all granted
-------------------------------- Separation line -----------------------------------------3. centos6 compile and install httpd-2.4 build httpd service based o
Compile and install httpd and compile httpd
Compile and install httpd
1. Download the source code package from the official website.
In order to avoid illegal software, be sure to go to the official website to download http://www.apache.org
Httpd-2.4.25.tar.gz2
2. Install the development package Group
Yum groupinstall
changed to the appropriate configuration18, httpd Self-brought tool programHtpasswd:basic authentication based on file implementation, the use of the account password file generation tool;Htdbm/htdigestAPACHECTL:HTTPD comes with a service control script that supports start and stop;APXS: Provided by the Httpd-devel package, extended httpd
Httpd log and log rotation tool, httpd log Rotation
Directory:1.1 Error Log ErrorLog1.2 access log CustomLog1.3 log rotation: rotatelogs Tool1.4 log rotation: cronolog Tool1.5 comparison between rotatelogs and cronolog
The types of logs to be recorded include Error Log ErrorLog and access log CustomLog. Generally, the default value is used for error logs. You can change the storage path of the error logs at
Implementation of WEB-httpd user authentication control and https on httpd in CentOS
We can configure httpd by setting user authentication and implementing https encrypted transmission experiments. The following are the requirements of this experiment:
Lab environment:
CentOS release6.6 (Final) 1
Windows XP 1
IP Address:
172.16.31.31 www.stu31.com web Server
172
This issue is encountered when installing deployment ganglia, and the httpd version 2.2.15,centos version is 6.4.
Installation method:
After the installation is complete, start everything to display normally, but when viewing the httpd status:
Service httpd status
httpd dead but Subsys lockedTry to delete the lock:
System centos6.0
Objective: The httpd service of two machines provides the same service and uses heartbeat to implement hot backup of httpd. to manage resources in a unified manner, the configuration must be written to both services, provides the nfs service for convenient management.
650) this. width = 650; "src =" http://www.bkjia.com/uploads/allimg/131228/013G33223-0.jpg "title =" Photo 1.jpg "/>
Lv1: 19
In the afternoon when the site on AWS EC2 is inaccessible, and the IP is accessible, login to SSH and view the service Service--status-all Discover that the HTTPD service is stopped, and then try to start httpd, prompt: Starting httpd: () Permission denied:AH00058:Error retrieving PID file/var/run/httpd/httpd.pidah0005
Implemented using httpd-2.2 and httpd-2.4, respectively1. Establish httpd service, request:1) provide two name-based virtual host WWW1, WWW2; there are separate error logs and access logs;2) Provide status information through WWW1 's/server-status, and only allow link user access;3) WWW2 does not allow access to any host in the 192.168.1.0/24 network;2. Provide H
Four machines in this article: Centos6.0
Lv1 and lv2 are used as the httpd frontend and keepalived for high availability. A virtual vip is provided for the client to access.
Node1 and node2 use the drbd technology to implement file image storage, and Virtualize a vip to provide nfsserver_ip for httpd services, facilitating configuration and unified data management;
Application Technology;
Add new modules to httpd and add modules to httpd
Sometimes, due to special requirements, you need to add some additional modules to the installed httpd. In this case, you need to use the apxs tool in httpd-devel. To use this extension mechanism, your platform must support the DSO feature, that is, Apache
Original http://httpd.apache.org/docs/2.4/howto/reverse_proxy.htmlTranslationReverse Proxy GuideIn addition to being a "basic" Web server and providing static and dynamic content to end users, Apache httpd (and most other Web servers) can also act as a reverse proxy server, also known as a gateway server.In this case, the httpd itself does not generate or host the data, but instead obtains the content throu
An error occurs when you restart Apache:
Httpd: syntax error on line 57 of/etc/httpd. conf: cannot load/usr/local/apache2/modules/libphp5.so into server: libltdl. so.3: cannot open shared object file: no such file or directory
Cannot open shared object file"
Solution:
1. Add the name of the folder in which libltdl. so.3 is located to the/etc/lD. So. conf file!The directory where libltdl. so.3 is located is/
MPM multi-Process Processing moduleMPM is divided into three modes:1,preforkProcess model, each process processes a request, pattern: Parent Process —————— > multiple child Processes —————— > One child process processing a request2,workerThreading model, each process derives multiple threads, each thread processes a request, pattern: Parent Process —————— > multiple child processes —————— > Multiple threads are derived from each child process-------> One thread processes a request task3,eventEve
Httpd proxy server and cache explanation, httpd proxy server
Since Apache 1.2, the proxy module has been added to the Apache source code. Unfortunately, there were many problems with the proxy module at that time, for example, incompatible with newer http specifications, no one can maintain it, or even delete it from the server. Since Apache2.0, the mod_proxy module is not only rewritten, but also divided i
Before building WordPress blog system and discuz! forum system, we need to prepare the lamp environment in CentOS.Now take CentOS 6 as an example to demonstrate its process.Lamp environment =linux+apche+mysql+phpUse Yun to install apche+mysql+php in the installed CentOS 6.7 , and enter the following command at the command line:~]# yum-y install httpd mysql mysql-server php php-mysql postgresql postgresql-server php-postgresql php-pgsql php-develAfter
This article System centos6.0
Objective: The HTTPD service of two machines provides the same service, uses heartbeat to realize httpd hot standby, in order to unify management resources (otherwise need to write configuration on two service), hang a machine behind, provide NFS service, facilitate management.
lv1:192.168.182.130
lv2:192.168.182.129
vip:192.168.182.200
nfsserver:192.168.182.131
1, firs
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.